home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / CD32 / CD32_Support / examples / SA_Examples / cd / CDTest / AudioPlay.rexx < prev    next >
Encoding:
OS/2 REXX Batch file  |  1993-08-31  |  452 b   |  22 lines

  1. /* Audio Play */
  2.  
  3. /*
  4. This is a supplement to the Audio.cd script.  The purpose of this script
  5. is to run along side the audio.cd script and play a set music segment
  6. from the center of the CD
  7. */
  8.  
  9. PARSE arg segTime lsnEOD
  10. lsnEOD = strip(lsnEOD)
  11. segTime = strip(segTime)
  12. framesPerSec = 75
  13.  
  14. Address CD.2
  15. OPTIONS RESULTS
  16.  
  17. say 'Playing' (segTime / framesPerSec) 'second segment at middle of disk.'
  18. start = lsnEOD % 2 - segTime % 2
  19. PLAYLSN start segTime
  20.  
  21. exit
  22.